<%-- 
    Document   : content-outer-shoes-update
    Created on : Aug 27, 2011, 3:57:49 PM
    Author     : Administrator
--%>

<%@page import="pojo.TinhTrangGiayPOJO"%>
<%@page import="dao.TinhTrangGiayDAO"%>
<%@page import="pojo.MauSacPOJO"%>
<%@page import="dao.MauSacDAO"%>
<%@page import="pojo.LoaiGiayPOJO"%>
<%@page import="dao.LoaiGiayDAO"%>
<%@page import="java.util.ArrayList"%>
<%@page import="dao.GiayDAO"%>
<%@page import="pojo.GiayPOJO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>


<%
    //Nếu quản trị chưa đăng nhập, chuyển sang trang đăng nhập.
    //if (session.getAttribute("QuanTri") == null) {
    //String url = request.getContextPath() + "/admin/DangNhapAdmin.html";
    //response.sendRedirect(url);
    //return;
    //}

%>

<!-- start content-outer -->
<div id='content-outer'>
    <!-- start content -->
    <div id='content'>
        <div id='page-heading'><h1>Thêm giày</h1></div>
        <table border='0' width='100%' cellpadding='0' cellspacing='0' id='content-table'>
            <tr>
                <th rowspan='3' class='sized'><img src='<%=request.getContextPath()%>/admin/images/shared/side_shadowleft.jpg' width='20' height='300' alt='' /></th>
                <th class='topleft'></th>
                <td id='tbl-border-top'>&nbsp;</td>
                <th class='topright'></th>
                <th rowspan='3' class='sized'><img src='<%=request.getContextPath()%>/admin/images/shared/side_shadowright.jpg' width='20' height='300' alt='' /></th>
            </tr>
            <tr>
                <td id='tbl-border-left'></td>
                <td>
                    <!--  start content-table-inner -->
                    <div id='content-table-inner'>
                        <table border='0' width='100%' cellpadding='0' cellspacing='0'>
                            <tr valign='top'>
                                <td>
                                    <!--  start step-holder -->
                                    <div id='step-holder'>
                                        <div class='step-no'>1</div>
                                        <div class='step-dark-left'><a href=''>Cập nhật thông tin giày</a></div>
                                        <div class='step-dark-right'>&nbsp;</div>
                                        <div class='step-no-off'>2</div>
                                        <div class='step-light-left'>Select related products</div>
                                        <div class='step-light-right'>&nbsp;</div>
                                        <div class='step-no-off'>3</div>
                                        <div class='step-light-left'>Preview</div>
                                        <div class='step-light-round'>&nbsp;</div>
                                        <div class='clear'></div>
                                    </div>
                                    <!--  end step-holder -->

                                    <!-- start id-form -->
                                    <form enctype='multipart/form-data' id='frmCapNhatThongTinGiay' name='frmCapNhatThongTinGiay' method='post' action='<%=request.getContextPath()%>/admin/jsp/sub-jsp/shoes-add-processing.jsp'>
                                        <table border='0' cellpadding='0' cellspacing='0'  id='id-form'>
                                            <!--tr>
                                                <th valign='top'>Mã giày:</th>
                                                <td><input type='text' READONLY value='' name='tfMaGiay' id='tfMaGiay' class='inp-form' /></td>
                                                <td></td>
                                            </tr-->
                                            <tr>
                                                <th valign='top'>Tên giày:</th>
                                                <td><input type='text' value='' name='tfTenGiay' id='tfTenGiay' class='inp-form' /></td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <th valign='top'>Loại giày:</th>
                                                <td>	
                                                    <select name='slLoaiGiay' class='styledselect_form_1'>
                                                        <%
                                                            ArrayList<LoaiGiayPOJO> dsLoaiGiay = LoaiGiayDAO.layDanhMucLoaiGiay();
                                                            for (int i = 0; i < dsLoaiGiay.size(); i++) {
                                                                LoaiGiayPOJO lg = dsLoaiGiay.get(i);                                                                                                                          
                                                        %>                                                        
                                                        <option value='<%=lg.getMaLoaiGiay()%>'><%=lg.getTenLoaiGiay()%></option>
                                                        
                                                        <% }%>
                                                    </select>
                                                </td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <th valign='top'>Màu sắc:</th>
                                                <td>	
                                                    <select name='slMauSac' class='styledselect_form_1'> 
                                                        <%
                                                            ArrayList<MauSacPOJO> dsMauSac = MauSacDAO.layDanhMucMauSac();
                                                            for (int i = 0; i < dsMauSac.size(); i++) {
                                                                MauSacPOJO ms = dsMauSac.get(i);                                                                
                                                        %>                                                        
                                                        <option value='<%=ms.getMaMauSac()%>'><%=ms.getTenMauSac()%></option>                                                        
                                                        <% }%>
                                                    </select>
                                                </td>
                                                <td></td>
                                            </tr>
                                            <th valign='top'>Giới tính:</th>
                                            <td>	
                                                <select name='slGioiTinh' class='styledselect_form_1'>                   
                                                    
                                                    <option selected value='1'>Nam</option>
                                                    <option value='0'>Nữ</option>
                                                    
                                                </select>
                                            </td>
                                            <td></td>
                                            </tr>                                            
                                            <tr>
                                                <th valign='top'>Tình trạng giày:</th>
                                                <td>	
                                                    <select name='slTinhTrang' class='styledselect_form_1'>
                                                        <%
                                                            ArrayList<TinhTrangGiayPOJO> dsTinhTrangGiay = TinhTrangGiayDAO.layDanhMucTinhTrangGiay();
                                                            for (int i = 0; i < dsTinhTrangGiay.size(); i++) {
                                                                TinhTrangGiayPOJO tt = dsTinhTrangGiay.get(i);                                                                
                                                        %>
                                                        
                                                        <option value='<%=tt.getMaTinhTrang()%>'><%=tt.getTenTinhTrang()%></option>
                                                       
                                                        <% }%>
                                                    </select>
                                                </td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <th valign='top'>Số lượng:</th>
                                                <td><input type='text' name='tfSoLuong' value='' id='tfSoLuong' class='inp-form' /></td>
                                                <td></td>
                                            </tr>

                                            <tr>
                                                <th valign='top'>Giá bán:</th>
                                                <td><input type='text' name='tfGiaBan' value='' id='tfGiaBan' class='inp-form' /></td>
                                                <td></td>
                                            </tr>

                                            <tr>
                                                <th valign='top'>Ghi chú:</th>
                                                <td><textarea rows='' cols='' class='form-textarea'></textarea></td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <th>Hình ngang:</th>
                                                <td><input name="file" type='file' class='file_1' /></td>
                                                <td>
                                                    <div class='bubble-left'></div>
                                                    <div class='bubble-inner'><b>Hình giày theo chiều ngang</b></div>
                                                    <div class='bubble-right'></div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>Hình dọc:</th>
                                                <td><input name="file" type='file' class='file_1' /></td>
                                                <td><div class='bubble-left'></div>
                                                    <div class='bubble-inner'><b>Hình giày theo chiều dọc</b></div>
                                                    <div class='bubble-right'></div></td>
                                            </tr>
                                            <tr>
                                                <th>&nbsp;</th>
                                                <td valign='top'>
                                                    <input type='submit' value='' class='form-submit' />
                                                    <input type='reset' value='' class='form-reset'  />
                                                </td>
                                                <td></td>
                                            </tr>
                                        </table>
                                    </form>
                                    <!-- end id-form  -->

                                </td>
                                <td>

                                    <!--  start related-activities -->
                                    <div id='related-activities'>

                                        <!--  start related-act-top -->
                                        <div id='related-act-top'>
                                            <img src='<%=request.getContextPath()%>/admin/images/forms/header_related_act.gif' width='271' height='43' alt='' />
                                        </div>
                                        <!-- end related-act-top -->

                                        <!--  start related-act-bottom -->
                                        <div id='related-act-bottom'>

                                            <!--  start related-act-inner -->
                                            <div id='related-act-inner'>

                                                <div class='left'><a href=''><img src='<%=request.getContextPath()%>/admin/images/forms/icon_plus.gif' width='21' height='21' alt='' /></a></div>
                                                <div class='right'>
                                                    <h5>Add another product</h5>
            					Lorem ipsum dolor sit amet consectetur
            					adipisicing elitsed do eiusmod tempor.
                                                    <ul class='greyarrow'>
                                                        <li><a href=''>Click here to visit</a></li> 
                                                        <li><a href=''>Click here to visit</a> </li>
                                                    </ul>
                                                </div>

                                                <div class='clear'></div>
                                                <div class='lines-dotted-short'></div>

                                                <div class='left'><a href=''><img src='<%=request.getContextPath()%>/admin/images/forms/icon_minus.gif' width='21' height='21' alt='' /></a></div>
                                                <div class='right'>
                                                    <h5>Delete products</h5>
            					Lorem ipsum dolor sit amet consectetur
            					adipisicing elitsed do eiusmod tempor.
                                                    <ul class='greyarrow'>
                                                        <li><a href=''>Click here to visit</a></li> 
                                                        <li><a href=''>Click here to visit</a> </li>
                                                    </ul>
                                                </div>

                                                <div class='clear'></div>
                                                <div class='lines-dotted-short'></div>

                                                <div class='left'><a href=''><img src='<%=request.getContextPath()%>/admin/images/forms/icon_edit.gif' width='21' height='21' alt='' /></a></div>
                                                <div class='right'>
                                                    <h5>Edit categories</h5>
            					Lorem ipsum dolor sit amet consectetur
            					adipisicing elitsed do eiusmod tempor.
                                                    <ul class='greyarrow'>
                                                        <li><a href=''>Click here to visit</a></li> 
                                                        <li><a href=''>Click here to visit</a> </li>
                                                    </ul>
                                                </div>
                                                <div class='clear'></div>

                                            </div>
                                            <!-- end related-act-inner -->
                                            <div class='clear'></div>

                                        </div>
                                        <!-- end related-act-bottom -->

                                    </div>
                                    <!-- end related-activities -->

                                </td>
                            </tr>
                            <tr>
                                <td><img src='<%=request.getContextPath()%>/admin/images/shared/blank.gif' width='695' height='1' alt='blank' /></td>
                                <td></td>
                            </tr>
                        </table>

                        <div class='clear'></div>


                    </div>
                    <!--  end content-table-inner  -->
                </td>
                <td id='tbl-border-right'></td>
            </tr>
            <tr>
                <th class='sized bottomleft'></th>
                <td id='tbl-border-bottom'>&nbsp;</td>
                <th class='sized bottomright'></th>
            </tr>
        </table>
        <div class='clear'>&nbsp;</div>

    </div>
    <!--  end content -->
    <div class='clear'>&nbsp;</div>
</div>
<!--  end content-outer -->



<div class='clear'>&nbsp;</div>
